package com.liang.demo.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author 陈琪亮
 * @version 1.0
 * @date 2021/3/19 15:35
 */
public class JwtToken implements AuthenticationToken {

    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    @Override
    public String getPrincipal() {
        return token;
    }

    @Override
    public String getCredentials() {
        return token;
    }
}
